package cevent.source.cloudcenter.source.config;/**
 * Created by Cevent on 2021/4/23.
 */

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

/**
 * @author cevent
 * @description 文件资源管理服务中心
 * @date 2021/4/23 16:37
 */
@SpringBootApplication
//@EnableEurekaClient
@EnableDiscoveryClient
@MapperScan(value = {"cevent.source.cloudcenter.server.mapper"})
@ComponentScan("cevent.source.cloudcenter")
public class SourceCenterApplication {
    private static final Logger LOG= LoggerFactory.getLogger(SourceCenterApplication.class);

    public static void main(String[] args) {
        SpringApplication springApplication=new SpringApplication(SourceCenterApplication.class);
        Environment environment=springApplication.run(args).getEnvironment();
        LOG.info("文件资源中心模块source-center启动");
        LOG.info("source-center地址：\thttp://127.0.0.1:{}",environment.getProperty("server.port"));
    }
}
